<?php
class Integral_ruletypeAction extends CommonAction {
	public function index(){
        $map['r.site_id']=$this->siteid;
		$pid_list=$this->dao->getList2(0,0,$map);
		$this->assign('pid_list',$pid_list);
		$this->display();
	}
	public function delete(){
		if($this->_get('id')){
			$_POST['id']=$this->_get('id');
			parent::delete();
		}
	}
	public function add(){
        $map['r.site_id']=$this->siteid;
		$this->pid_list=$this->dao->getList2(0,0,$map);
		parent::add();
	}
	public function edit(){
		parent::edit();
	}
	public function update(){
		if($this->_post('id')){
			parent::update();
		}
	}
	public function insert(){
		$_POST['site_id'] =$this->siteid;
		parent::insert();
	}
}

?>